home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK2.toast / Development Kits (Disc 2) / QuickTime / Programming Stuff / Sample Code / Music Architecture / Mixed Bag / BigEasy / BigEasyTextish.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-15  |  2.2 KB  |  93 lines  |  [TEXT/KAHL]

  1. /*
  2.                 File:        BigEasyTextish.h
  3.             
  4.                 Copyright:    © 1990-1992, 1994 by Apple Computer, Inc., all rights reserved.
  5.             
  6.     This file is used in these builds: Warhol
  7.  
  8.                 Change History (most recent first):
  9.             
  10.          <8+>      include quickdraw
  11.          <8>      9-8-94    dvb        
  12.         <5+>      5/6/93    dvb        String->Number
  13.          <5>      1/7/93    dvb        New functions (TruncateString).
  14.          <4>     1/20/92    dvb        Add more routines.
  15.          <3>      6/3/91    dvb        Just Hackin'.
  16.          <2>    11/16/90    dvb        Remove drawcstring
  17.          <1>    11/16/90    dvb        Brand New again!
  18.             
  19.                 To Do:
  20. */
  21.  
  22. /* file: BigEasyTextish.h
  23.  *
  24.  * Started 13 July 1989, more or less.
  25.  *
  26.  * Headers for routines for converting and
  27.  * displaying textish things on the Mac.
  28.  *
  29.  */
  30.  
  31.  
  32. /************************************
  33. * BigEasyTextish Global Variables
  34. ************************************/
  35.  
  36. #ifndef BigEasyTextishIncludes
  37. #define BigEasyTextishIncludes
  38.  
  39.  
  40. #ifdef BigEasyTextish
  41.     #define VAR
  42. #else
  43.     #define VAR extern
  44. #endif
  45.  
  46. #include <QuickDraw.h>
  47.  
  48. VAR short gLeftMargin;
  49. VAR short gLineHeight;
  50.  
  51. #undef VAR
  52.  
  53. /************************************
  54. * Prototypes
  55. ************************************/
  56. #ifdef __cplusplus
  57. extern "C" {
  58. #endif
  59.  
  60. void AnyBaseToPString(long n,short format,short width,StringPtr c);
  61. void CToPString(char *src,StringPtr dst);
  62.  
  63. void FixedPointToPString(long n,short g,short p,StringPtr s);
  64. void PStringToFixedPoint(StringPtr s,short g,short p,long *n);
  65. void PStringToFixedPoint(StringPtr s,short g,short p,long *n);
  66.  
  67. void DrawNum(long n);
  68. void DrawFixedPoint(long n,short g,short p);
  69. void DrawFixed(long n,short g);
  70. void DrawFixedPointJustified(long n,short g,short p,short h);
  71. void DrawFixedJustified(long n,short g,short h);
  72. void DrawFrac(long n,short g);
  73. void DrawHexByte(unsigned char n);
  74. void DrawHexShort(unsigned short n);
  75. void DrawHexLong(unsigned long n);
  76. void DrawCR(void);
  77. short CStringWidth(char *);
  78. void CopyPString(StringPtr dest,StringPtr src);
  79. void ConcatenatePStrings(StringPtr dest,StringPtr src);
  80. void DrawStringRight(StringPtr s);
  81. void DrawStringCenter(StringPtr s);
  82. void DrawStringLeft(StringPtr s);
  83. void TruncateString(StringPtr s, short width);
  84. void DrawStringTruncated(StringPtr s, short width);
  85.  
  86. void OSTypeToString(StringPtr dest,OSType x);
  87.  
  88. #ifdef __cplusplus
  89. }
  90. #endif
  91.  
  92. #endif  //BigEasyTextishIncludes
  93.